import request from '@/utils/request'

// 新增收支单
export function bizCostAdd (data) {
  return request({
    url: '/biz/bizCost',
    method: 'post',
    data: data
  })
}
// 新增收支单
export function bizCostEdit (data) {
  return request({
    url: '/biz/bizCost',
    method: 'put',
    data: data
  })
}
// 删除收支单
export function delBizCost (id) {
  return request({
    url: `/biz/bizCost/${id}`,
    method: 'delete',
  })
}
// 查询收支单列表
export function listBizCost (query) {
  return request({
    url: '/biz/bizCost/list',
    method: 'get',
    params: query
  })
}

// 收支单审核
export function bizCostAudit (id,status) {
  return request({
    url: `/biz/bizCost/audit/${id}:${status}`,
    method: 'get',
  })
}

// 查询收支明细信息
export function getBizCostDetail (id) {
  return request({
    url: '/biz/bizCost/' + id,
    method: 'get'
  })
}
